import Vue from 'vue'
// 注册到全局
import SvgIcon from '@c/svgIcon.vue' // svg组件

Vue.component('svg-icon', SvgIcon)
const requireAll = requireContext => requireContext.keys().map(requireContext)
const req = require.context('@/assets/icons/svg', false, /\.svg$/)
requireAll(req)
